package com.crimax.skor.model;

public class RgbObject {

	private final String red;
	private final String green;
	private final String blue;
	
	public RgbObject(String red, String green, String blue) {
		super();
		this.red = red;
		this.green = green;
		this.blue = blue;
	}

	public RgbObject(String color) {
		super();
		
		String[] split = color.split(",");
		this.red = split[0];
		this.green = split[1];
		this.blue = split[2];
		
	}
	
	public String getRed() {
		return red;
	}

	public String getGreen() {
		return green;
	}

	public String getBlue() {
		return blue;
	}
	
	@Override
	public String toString(){
		
		
		return "RBG color: "+this.red+","+this.green+","+this.blue;
		
	}
}
